package org.bedracket.bedracketenchantment.datagen;

import net.minecraft.data.DataGenerator;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.forge.event.lifecycle.GatherDataEvent;
import org.bedracket.bedracketenchantment.BREMod;
import org.bedracket.bedracketenchantment.datagen.lang.ModLanguageProvider;
import org.bedracket.bedracketenchantment.datagen.lang.ModLanguageProviderZh;

@Mod.EventBusSubscriber(modid = BREMod.MOD_ID, value = Dist.CLIENT, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModDataGenerator {
    @SubscribeEvent
    public static void onGatherData(GatherDataEvent event) {
        DataGenerator generator = event.getGenerator();
        ExistingFileHelper helper = event.getExistingFileHelper();
        generator.addProvider(new ModLanguageProvider(generator));
        generator.addProvider(new ModLanguageProviderZh(generator));
    }
}
